package org.polar.service;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.net.wifi.WifiManager;
public class WifiInfoManager {    
        
    WifiManager wm;    
        
    public WifiInfoManager(){}    
        
    public List<WifiInfo>  getWifiInfo(Context context){    
    	List<WifiInfo> wifi = new ArrayList<WifiInfo> ();    
        wm = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);    
        WifiInfo info = new WifiInfo();    
        info.setMac(wm.getConnectionInfo().getBSSID());    
        wifi.add(info);    
        return wifi;    
    }    
}    
